/**
* @file main.cpp in LiveGraph
* @author linfe
* @comment
* Create on 2022/9/30 0:13
* @version 1.0
**/

#include <QApplication>
#include "LiveViewWindow.h"
#include "glog/logging.h"
#include "gflags/gflags.h"

DEFINE_bool(nw, false, "no windows");

int main(int argc, char **argv) {


    google::InitGoogleLogging(argv[0]);
    google::LogToStderr();
    google::ParseCommandLineFlags(&argc, &argv, true);
    if (argc > 1) {
        LOG(ERROR) << "Unsupported parameter:" << argv[argc - 1];
        return 1;
    }
    if (fLB::FLAGS_nw) {
        LOG(INFO) << "Run without windows";
        /*TODO*/
    } else {
        QApplication a(argc, argv);
        LiveViewWindow w;
        w.show();
        return QApplication::exec();
    }
    return 0;
}